package com.bdqn.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户令牌
 *
 * @author lilibo
 * @date 2021/10/09
 */
@Api("用户令牌")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_token")
public class SysToken extends Model<SysToken> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @ApiModelProperty("用户ID")
    @TableId(type = IdType.AUTO)
    private Integer userId;

    /**
     * 令牌
     */
    @ApiModelProperty("令牌")
    private String token;

    /**
     * 过期时间
     */
    @ApiModelProperty("过期时间")
    private String expireTime;

    /**
     * 更新时间
     */
    @ApiModelProperty("更新时间")
    private String updateTime;

}
